/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class PetHouse {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010090011';
    }

    get categoryName() {
        return '\u5ba0\u7269\u7a9d';
    }

    getCurrentTemperature(params) {
        return command({
            method: 'getCurrentTemperature',
            methodId: 'pdNCu1RK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFanLevel(params) {
        return command({
            method: 'getFanLevel',
            methodId: 'phEcQNXn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFanSwitch(params) {
        return command({
            method: 'getFanSwitch',
            methodId: 'pgh0Uvy9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLightSwitch(params) {
        return command({
            method: 'getLightSwitch',
            methodId: 'ptRSgknM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pDrhrHJE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTemperature(params) {
        return command({
            method: 'getTemperature',
            methodId: 'p1vZLisI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFanLevel(params) {
        return command({
            method: 'setFanLevel',
            methodId: 'pZgubjaW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFanSwitch(params) {
        return command({
            method: 'setFanSwitch',
            methodId: 'pUPQDAVR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLightSwitch(params) {
        return command({
            method: 'setLightSwitch',
            methodId: 'pGox3y6z',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'ppAr4Cko',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTemperature(params) {
        return command({
            method: 'setTemperature',
            methodId: 'peH3eUI1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default PetHouse;
